<?php

namespace common\models\site;

use Yii;

/**
 * This is the model class for table "{{%site_chm_data}}".
 *
 * @property int $id
 * @property int $chm_id 帮助ID
 * @property int $parent_id 父级内容ID
 * @property int $listorder 显示排序
 * @property string $content 帮助内容
 * @property int $status 状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 * @property int $deleted_at 删除时间
 */
class SiteChmData extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%site_chm_data}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['chm_id', 'parent_id', 'listorder', 'status', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
            [['content'], 'required'],
            [['content'], 'string'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'chm_id' => '帮助ID',
            'parent_id' => '父级内容ID',
            'listorder' => '显示排序',
            'content' => '帮助内容',
            'status' => '状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
            'deleted_at' => '删除时间',
        ];
    }

}
